let AntiShake = 0
let arry = []

function main(){
  AntiShake++ // 防抖
  if(AntiShake!=1){
    return
  }
  arry = getInput();
  arry = init(arry);
}

function getInput(){
  let arry = [];
  let input =document.querySelector('input');
  let inputValue = input.value.split(" ");
  let num = 0;
  for(i of inputValue){
    if(i&&Number(i)&&Number(i)>0&&Number(i<=30)){
      arry.push(Number(i))
      num++;
    } 
    if(num==10){
      break
    }
  }
  return arry
}

function init(arry){
  let animation = document.querySelector(".animation")
  let divAll = []
  for(i of arry){
    let div = document.createElement('div');
    div.innerHTML = i
    div.style.paddingTop = i*7+"px"
    div.style.paddingBottom = i*7+"px"
    div.className = "element"
    divAll.push(div)
    animation.appendChild(div)
  }
  return divAll
}

function quickSort(arryNum, arry){
  
}

